package com.cskaoyan._03otherstream._01data;

import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/20 11:30
 **/
/*
需求: 用字节流向文件中写个整数1000   小数3.14
 */
public class Demo {
    public static void main(String[] args) throws IOException {
        // 创建输出流对象
        FileOutputStream outputStream = new FileOutputStream("a.txt");
        // write
        outputStream.write(1000);

        //outputStream.write(3.14);
        //
        //outputStream.write(true);
        // close
        outputStream.close();
    }
}
